package comp
{
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.net.URLRequest;
	
	public class MyClass extends Sprite
	{   
		public function MyClass():void
		{
			var loader:Loader = new Loader();
			var url:URLRequest = new URLRequest("assets/img/未命名.gif");
			loader.load(url);
			this.addChild(loader);         
			
			var circle:Sprite = new Sprite();
			circle.graphics.beginFill(0x00FFFFFF, 1.0);
			circle.graphics.drawCircle(0, 0, 50);
			circle.graphics.endFill();
			this.addChild(circle);
			
			loader.cacheAsBitmap = true;
			circle.cacheAsBitmap = true;
			
			loader.mask = circle;
			circle.startDrag(true);
		}
	}
}

